<template>
<div class="main">
    <div class="title_sub">
        <span class="title">发表评论</span> 
    </div>
    <div class="comments_sub">
        <div style="border:1px solid lightgray; height:100px; margin:10px 0 25px 0">
           <slot name="perComment"></slot>
        </div>
        <slot name="submit"></slot>
    </div>
    <div class="title_list">
        <span class="title">评论列表</span>
    </div>
    <div class="comments_show">
        <slot name="allComments"></slot>
    </div>
</div>
</template>

<script>

export default {
props: {
    id:String
},
data () {
    return {
        
    }
},
methods: {
    
    
},
mounted () {
    
}
}
</script>

<style lang="less" scoped>
.title_sub,
.comments_sub,
.title_list{
    width: 100vw;
    padding: 10px !important;
    box-sizing: border-box;
    overflow: hidden;
    border-bottom: 1px solid lightgray;
    .title{
        font-size: 26px;
        font-weight: 700;
    }
    .return{
        font-size: 18px;
        color: #26a2ff;
       
    }
    .submit{
        width: 100vw;
    }
    .comment{
        height: 8vh;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        border-bottom: 1px solid lightgray;
        padding: 15px 0;
        .commentDetail{
            display: flex;
            .username{
                flex: 1;
                color: #26a2ff;
            }
            .subTime{
                flex:1
            }
        }
    }
}
.title_sub{
    display: flex;
    .title{
        flex: 2;
    }
    .return{
        flex: 1;
    }
}
.title_list{
    display: flex;
    .title{
        flex: 2;
    }
    .info{
        flex: 1;
    }
}  
</style>